#ifndef CICONBUTTON_H
#define CICONBUTTON_H

#include <QPushButton>
#include <QResizeEvent>

class CIconButton : public QPushButton
{
    Q_OBJECT
public:
    explicit CIconButton(QWidget *parent = nullptr);
    explicit CIconButton(const QString &text, QWidget *parent = nullptr);
    explicit CIconButton(const QIcon &icon, const QString &text, QWidget *parent = nullptr);

protected:
    void resizeEvent(QResizeEvent *event);
};

#endif // CICONBUTTON_H
